#pragma once
#include "CyNetObject.h"
#include "CyNetObjectEnum.h"
#include <string>

class CyNetText : public CyNetObject
{
public:
	CyNetText(void);
	CyNetText(const std::wstring& text);
	~CyNetText(void);

	// Implement abstract methods
	virtual int GetSize() const;
	virtual int GetStream(char* buffer, int size) const;
	virtual CyNetText& FromStream(const char* buffer);
	virtual CyNetObjectEnum GetType() const;

	std::wstring& GetText(std::wstring& buffer) const;
	CyNetText& SetText(const std::wstring& buffer);

private:
	std::wstring _text;
};